package com.smart.home;

import com.smart.home.annotation.IP;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/*@SpringBootTest
@RestController
public class text {

    @Autowired
    private RedisTemplate redisTemplate;


    @ Test
    public void test() {
            String ip = "192.168.1.1";
            String[] split = ip.split("\\.");
            Long result = 0L;
            System.out.println(Long.parseLong(split[0]) << (8 * (3)));

            for (int i = 0; i < split.length; i++) {
                result =result | (Integer.parseInt(split[i]) << (8 * (3 - i)));
            }

    }
}*/
